import request from '@/utils/request'

// 查询我的体检记录列表
export function listPrivateExamination(query) {
  return request({
    url: '/privateExamination/privateExamination/list',
    method: 'get',
    params: query
  })
}

// 查询我的体检记录详细
export function getPrivateExamination(examinationId) {
  return request({
    url: '/privateExamination/privateExamination/' + examinationId,
    method: 'get'
  })
}

// 新增我的体检记录
export function addPrivateExamination(data) {
  return request({
    url: '/privateExamination/privateExamination',
    method: 'post',
    data: data
  })
}

// 修改我的体检记录
export function updatePrivateExamination(data) {
  return request({
    url: '/privateExamination/privateExamination',
    method: 'put',
    data: data
  })
}

// 删除我的体检记录
export function delPrivateExamination(examinationId) {
  return request({
    url: '/privateExamination/privateExamination/' + examinationId,
    method: 'delete'
  })
}
